package Text;

import java.util.Scanner;

public class Text6 {
    public static void main(String[] args) {
        //在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值？
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        System.out.println(max(a,b));
        double c=sc.nextDouble();
        double d=sc.nextDouble();
        double e=sc.nextDouble();
        System.out.println(max(c,d,e));
    }
    static int max(int a,int b){
        int sum=(a>b)?a:b;
        return sum;
    }
    static double max(double c,double d,double e){
        double sum=(c>d)?c:d;
        double sum1=(e>sum)?e:sum;
        return sum1;
    }
}
